package com.ruoyi.teacher.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 教师管理对象 qcl_teacher
 *
 * @author ruoyi
 * @date 2024-10-17
 */
@TableName(value = "qcl_teacher")
@Data
public class Teacher extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID 编号
     */
    @Excel(name = "ID 编号")
    private Long id;

    /**
     * 教师名字
     */
    @Excel(name = "教师名字")
    private String teacherName;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    private String teacherContact;

    /**
     * 掌管班级
     */
    @Excel(name = "掌管班级")
    private String manageClass;

    /**
     * 所属学校
     */
    @Excel(name = "所属学校")
    private String teacherSchool;

    /**
     * 所教课程
     */
    @Excel(name = "所教课程")
    private String teachCourse;

    /**
     * 状态（1正常 0不正常）
     */
    @Excel(name = "状态", readConverterExp = "1=正常,0=不正常")
    private String teacherStatus;

    /**
     * 删除标志（0存在 2删除）
     */
    @Excel(name = "删除标志", readConverterExp = "0=存在,2=删除")
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getTeacherContact() {
        return teacherContact;
    }

    public void setTeacherContact(String teacherContact) {
        this.teacherContact = teacherContact;
    }

    public String getManageClass() {
        return manageClass;
    }

    public void setManageClass(String manageClass) {
        this.manageClass = manageClass;
    }

    public String getTeacherSchool() {
        return teacherSchool;
    }

    public void setTeacherSchool(String teacherSchool) {
        this.teacherSchool = teacherSchool;
    }

    public String getTeachCourse() {
        return teachCourse;
    }

    public void setTeachCourse(String teachCourse) {
        this.teachCourse = teachCourse;
    }

    public String getTeacherStatus() {
        return teacherStatus;
    }

    public void setTeacherStatus(String teacherStatus) {
        this.teacherStatus = teacherStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("teacherName", getTeacherName())
                .append("teacherContact", getTeacherContact())
                .append("manageClass", getManageClass())
                .append("teacherSchool", getTeacherSchool())
                .append("teachCourse", getTeachCourse())
                .append("teacherStatus", getTeacherStatus())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
